home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Prog / M / LinkedList.cpt / Linked list / Linked_List Instructions next >
Encoding:
Text File  |  1990-08-19  |  2.3 KB  |  68 lines  |  [TEXT/PEDT]

  1.                     LINKED LIST EXAMPLE INSTRUCTIONS
  2.                     
  3. By: Russell L. Naber
  4. GENIE: R.NABER
  5. Distribution:    Shareware please distribute in whole all related files
  6.                 including this instruction file.  If you feel this example
  7.                 Program has helped you feel free to contribute what you 
  8.                 think it is worth to you to the following:
  9.                 
  10.                 Russell L. Naber
  11.                 6801 S. Robin Drive
  12.                 Gillette, WY. 82716
  13.                 
  14.                 --------------------------------------------
  15. This lightspeed pascal program shows how to load a database in a text file
  16. into a pascal data structure using linked list's.
  17.  
  18. Upon opening the project enter the following equations into the observe
  19. window.
  20.  
  21. TheNode^^.StrgData
  22. TheNode^^.LongIntData
  23.  
  24. This will allow you to see how the fields in the node variable are changed.
  25. There are some stop signs inserted into the program to automatically stop
  26. the program before each node is changed.  Just use command-G to advance it
  27. one loop.
  28.  
  29. You can add more information to the database just by opening it in a word
  30. processor, (be sure to turn on the ability to see tabs and returns) and
  31. inserting the new records according to the following format:
  32.  
  33. TAB        STRINGDATA    TAB    LONGINTEGERDATA    CR
  34.  
  35. ->        TESTSTRING    ->    123456    CR            {EXAMPLE}
  36.  
  37. The program will automatically adjust to any length of databse, but it must
  38. be in the proper format as follows:
  39.  
  40. 1.) first character on each line must be a tab.
  41. 2.) the string is next with a max length of 9 characters.
  42. 3.) another tab
  43. 4.) the longinteger next with a max length of 6 characters.
  44. 5.) end the line with a carriage return.
  45.  
  46. Also the data file must be in the same folder as the project. (I've just
  47. have not inserted code to find it in any folder in HFS yet).
  48.  
  49.  
  50. This program shows how to open files within the MAC-OS from the toolbox and
  51. how to use non-relocatable pointers and relocatable handles and how to 
  52. dispose of them to free memory. This is a must if you plan to use very large
  53. data base's.  This one only contains 20 records, but in my working program
  54. it contains just over 5000 records and loads into the structure in just over
  55. 20 seconds on a mac+.  Hence the portion checking memory size for debugging.
  56.  
  57. You are free to learn from this source example and use it in your programs.
  58. I hope it will save you time in learning how linked list's work.
  59.  
  60. Feel free to send any comments or questions to me on GENIE at the following
  61. E-Mail address:
  62.  
  63. R.NABER
  64.  
  65.  
  66.  
  67.  
  68.